package com.example.demo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyPicConfig implements WebMvcConfigurer {

    public void addResourceHandlers(ResourceHandlerRegistry registry){
        registry.addResourceHandler("/static/img/**")
//<<<<<<< HEAD
                .addResourceLocations("file:D:/Projects/IDEA/DIY/src/main/resources/static/img/");
//=======
//                .addResourceLocations("file:D:/DIY/DIY/src/main/resources/static/img/");
//>>>>>>> 070b4df5696ef4944cb9cecf74d3350949a35352
    }
}
